home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / BOOPSI / GI1 / Include / gadgets / calendar.i < prev    next >
Encoding:
Text File  |  1999-10-27  |  2.3 KB  |  88 lines

  1.     IFND    GADGETS_CALENDAR_I
  2. GADGETS_CALENDAR_I    SET    1
  3.  
  4. **
  5. **    $VER: calendar.i 42.1 (10.1.94)
  6. **    Includes Release 42.1
  7. **
  8. **    Definitions for the calendar BOOPSI class
  9. **
  10. **    (C) Copyright 1994-1999 Amiga, Inc.
  11. **    All Rights Reserved
  12. **
  13.  
  14. ;*****************************************************************************
  15.  
  16.     IFND EXEC_TYPES_I
  17.     INCLUDE "exec/types.i"
  18.     ENDC
  19.  
  20.     IFND UTILITY_DATE_H
  21.     INCLUDE "utility/date.i"
  22.     ENDC
  23.  
  24.     IFND UTILITY_TAGITEM_H
  25.     INCLUDE "utility/tagitem.i"
  26.     ENDC
  27.  
  28.     IFND INTUITION_GADGETCLASS_I
  29.     INCLUDE "intuition/gadgetclass.i"
  30.     ENDC
  31.  
  32. ;*****************************************************************************
  33.  
  34. DL_TEXTPEN        equ    0
  35. DL_BACKGROUNDPEN    equ    1
  36. DL_FILLTEXTPEN        equ    2
  37. DL_FILLPEN        equ    3
  38. MAX_DL_PENS        equ    4
  39.  
  40. ;*****************************************************************************
  41.  
  42. ; This structure is used to describe the days of the month
  43.     STRUCTURE DayLabel,0
  44.     APTR     dl_Label            ; Label
  45.     STRUCT     dl_Pens,(MAX_DL_PENS*2)    ; Pens (array of UWORD's)
  46.     APTR     dl_Attrs            ; Additional attributes
  47.     ULONG     dl_Flags            ; Control flags
  48.  
  49.     LABEL DayLabel_SIZEOF
  50.  
  51. ;*****************************************************************************
  52.  
  53.     BITDEF    DL,SELECTED,1                ; Day selected
  54.     BITDEF    DL,DISABLED,2                ; Day disabled
  55.  
  56. ;*****************************************************************************
  57.  
  58. ; Additional attributes defined by the calendar.gadget class
  59. CALENDAR_Dummy        equ    (TAG_USER+$4000000)
  60.  
  61. CALENDAR_Day        equ    (CALENDAR_Dummy+1)
  62.     ; (LONG) Day of the week
  63.  
  64. CALENDAR_ClockData    equ    (CALENDAR_Dummy+2)
  65.     ; (struct ClockData *) defining clock data
  66.  
  67. CALENDAR_FirstWeekday    equ    (CALENDAR_Dummy+3)
  68.     ; (LONG) First day of the week.  Default is 0 for Sunday.
  69.  
  70. CALENDAR_Days        equ    (CALENDAR_Dummy+4)
  71.     ; (STRPTR *) Text for days of the week
  72.  
  73. CALENDAR_Multiselect    equ    (CALENDAR_Dummy+5)
  74.     ; (BOOL) Can more than one day be selected at a time.  Defaults
  75.     ; to FALSE.
  76.  
  77. CALENDAR_Labels        equ    (CALENDAR_Dummy+6)
  78.     ; (DayLabelP) Array of labels for the days of the month.  Optional,
  79.     ; but if provided, must be an array of 31 entries.
  80.  
  81. CALENDAR_Label        equ    (CALENDAR_Dummy+7)
  82.     ; (BOOL) Indicate whether there should be a label across the top
  83.     ; showing the names of the days of the week.  Defaults to TRUE.
  84.  
  85. ;*****************************************************************************
  86.  
  87.     ENDC    ; GADGETS_CALENDAR_I
  88.